﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FigureDraw
{
    public class myRectangle : myShape
    {

        public myRectangle()
        {
            oldPosition = new Vector2 { X = 0, Y = 0 };
            curPosition = new Vector2 { X = 0, Y = 0 };
        }
        public myRectangle(Vector2 _oldP, Vector2 _curP)
        {
            oldPosition = new Vector2(_oldP);
            curPosition = new Vector2(_curP);
        }

        public override void Draw(Target target, Paper drawPaper, PenType penType)
        {

            target.DrawRectangle(
                drawPaper,
                oldPosition,
                curPosition,
                penType);
        }
    }
}
